#include "fastdo.hpp"
#include "game_server.hpp"
#include <iostream>

using namespace winux;
using namespace std;

int main(int argc, char **argv)
{
  SocketLib lib;

  int ret = 0;
  try
  {
    GameServer server;
    server.run();
  }
  catch (winux::Error const &e)
  {
    cout << ConsoleColor(winux::fgRed, e.what());
    ret = 1;
  }
  catch (std::exception const &e)
  {
	  cout << e.what();
	  ret = 1;
  }
  catch (...)
  {
	  ret = 1;
  }
  return ret;
}